from django.shortcuts import render_to_response
from django.template.context import RequestContext
from loan.models import Loan
from member.models import Member

def loan(request, template_name='loan/loans.html'):
    loans = Loan.objects.all()
    return render_to_response(template_name, locals(), context_instance=RequestContext(request))